import request from '@/utils/request';

/** 导出surveyRecord接口


  import  { postSurveyRecordAdd,postSurveyRecordPage } from "@/api/surveyRecord/index"


  */

/**
满意度记录新增
* @param { integer } formId - 表单id ( required: true )
* @param { integer } planId - 计划编号 ( required: true )
* @param { string } pushChannel - 推送渠道 ( required: true )
* @param { integer } pushType - 推送类型 ( required: true )
* @param { string } surveyEndDate - 调研结束时间 ( required: true )
* @param { string } surveyStartDate - 调研开始时间 ( required: true )
* @param { array } userDetails - 推送用户详情列表 ( required: true )
*/
export const postSurveyRecordAdd = (data) => {
  return request({
    url: '/surveyRecord/add',
    method: 'post',
    data: data,
  });
};

/**
满意度记录分页列表
* @param { integer } formId - 表单id ( required: true )
* @param { integer } pageNum - 当前页码 ( required: true )
* @param { integer } pageSize - 显示条数 ( required: true )
* @param {  } pushDate - 推送时间 ( required: true )
*/
export const postSurveyRecordPage = (data) => {
  return request({
    url: '/surveyRecord/page',
    method: 'post',
    data: data,
  });
};
